home *** CD-ROM | disk | FTP | other *** search
/ USA Bestseller / USA BESTSELLER Vol 1-95 (Hepp-Computer)(1995).iso / e255 / makewin.bat < prev    next >
DOS Batch File  |  1994-02-20  |  2KB  |  65 lines

  1. ECHO OFF
  2. CLS
  3. IF NOT !%1==! GOTO A
  4. GOTO C
  5. :A
  6. IF NOT !%2==! GOTO B
  7. :C
  8. ECHO  .
  9. ECHO  The correct command line is as follows:
  10. ECHO  .
  11. ECHO          MAKEWIN  c:\windows  file       «--- DO NOT TYPE "RLE" EXTENSION
  12. ECHO  .
  13. ECHO  Type in your Windows drive/directory in place of "c:\windows",
  14. ECHO  and type in the RLE file of your choice in place of "file",
  15. ECHO  without typing the RLE extension.
  16. ECHO  .
  17. ECHO  (example:  MAKEWIN D:\WINDOWS MCKYLOG)
  18. ECHO  .
  19. ECHO  This will create a new COM file in your Windows directory, with the
  20. ECHO  same name as the RLE file that you typed in place of "file" in the
  21. ECHO  above command.  (example:  MCKYLOG.COM)
  22. ECHO  .
  23. ECHO  .
  24. GOTO END
  25. :B
  26. IF EXIST %1\WIN.COM GOTO B1
  27. ECHO  The file "WIN.COM" cannot be found in the Windows directory you typed,
  28. ECHO  "%1".
  29. ECHO  .
  30. IF EXIST %2.RLE GOTO C
  31. ECHO  The RLE file you indicated, "%2.RLE", cannot be found...
  32. ECHO  The RLE files should be in the same directory as this MAKEWIN file.
  33. ECHO  .
  34. GOTO C
  35. :B1
  36. IF EXIST %2.RLE GOTO B2
  37. ECHO  The RLE file you indicated, "%2.RLE", cannot be found...
  38. ECHO  The RLE files should be in the same directory as this MAKEWIN file.
  39. ECHO  .
  40. GOTO C
  41. :B2
  42. IF EXIST %1\SYSTEM\WIN.CNF GOTO B3
  43. ECHO  The file "WIN.CNF" cannot be found in the Windows SYSTEM directory,
  44. ECHO  "%1\SYSTEM".
  45. ECHO  .
  46. ECHO  .
  47. GOTO END
  48. :B3
  49. IF EXIST %1\SYSTEM\VGALOGO.LGO GOTO B4
  50. ECHO  The file "VGALOGO.LGO" cannot be found in the Windows SYSTEM directory,
  51. ECHO  "%1\SYSTEM".
  52. ECHO  .
  53. ECHO  .
  54. GOTO END
  55. :B4
  56. COPY /B /V %1\SYSTEM\WIN.CNF+%1\SYSTEM\VGALOGO.LGO+%2.RLE %1\%2.COM
  57. CLS
  58. ECHO  .
  59. ECHO  DONE!
  60. ECHO  .
  61. ECHO  "%2.COM" ready for run from the "%1" directory.
  62. ECHO  .
  63. ECHO  .
  64. :END
  65.